//
//  QuizAnalyView.h
//  SubmitVCDemo
//
//  Created by Tianlong on 2018/1/24.
//  Copyright © 2018年 Tianlong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QuizQuestionConfig.h"
#import "QuizAnalyListItem.h"

#pragma mark - 协议
@class QuizAnalyView;
@protocol QuizAnalyViewDelegate <NSObject>
@optional
- (void)analyView:(QuizAnalyView *)analyView didSelectItem:(QuizAnalyListItem *)item atIndexPath:(NSIndexPath *)indexPath;
@end

@interface QuizAnalyView : UIView

@property (weak, nonatomic) id<QuizAnalyViewDelegate> delegate;

+ (instancetype)viewWithDataSource:(NSArray *)dataSource;
- (void)reloadDataWithDataSource:(NSArray *)dataSource;
- (void)reloadData;
+ (CGFloat)getRealHeightWithDataSourceCount:(NSInteger)count;
@end
